package com.didi.gulimall.api;

import com.didi.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 10626
 */
@FeignClient("gulimall-product")
public interface ProductApiService {

    @GetMapping(value = "product/attr/info/{attrId}")
    R attrInfo(@PathVariable("attrId") Long attrId);

    @GetMapping("product/brand/infos")
    R brandsInfo(@RequestParam("brandIds") List<Long> brandId);

}
